import 'package:freezed_annotation/freezed_annotation.dart';
import 'dart:convert';

part 'search_hotkeyword_response.freezed.dart';
part 'search_hotkeyword_response.g.dart';

@freezed
class SearchHotkeywordResponse with _$SearchHotkeywordResponse {
  const factory SearchHotkeywordResponse({
    @JsonKey(name: "c") required int c,
    @JsonKey(name: "m") required String m,
    @JsonKey(name: "d") required List<String> d,
  }) = _SearchHotkeywordResponse;

  factory SearchHotkeywordResponse.fromJson(Map<String, dynamic> json) =>
      _$SearchHotkeywordResponseFromJson(json);
}
